Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Pass columns required by upstream query for group-by pushdown #9698

Conversation

sergey-melnychuk
Copy link

@sergey-melnychuk sergey-melnychuk commented Oct 19, 2021

Suggestion how to proceed with #9021

@cla-bot cla-bot bot added the cla-signed label Oct 19, 2021
@sergey-melnychuk sergey-melnychuk changed the title Pass columns required by upstream query for group-by pushdown [WIP] Pass columns required by upstream query for group-by pushdown Oct 19, 2021
@@ -146,12 +148,16 @@ public Result apply(AggregationNode node, Captures captures, Context context)
.map(groupByColumn -> assignments.get(groupByColumn.getName()))
.collect(toImmutableList());

// TODO FIXME How to get columns required by upstream query?
Set<String> requiredColumns = Collections.emptySet();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still unsure how to properly propagate columns required by the upstream query.

@sergey-melnychuk
Copy link
Author

Even with heuristics applied, the query (from the issue) fails without column that is considered redundant. The issue seems to be addressed in #9832.

@sergey-melnychuk sergey-melnychuk deleted the sm/feature/required-upstream-columns branch November 6, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant